package cn.tyoui.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.tyoui.bean.DdBean;
import cn.tyoui.mapping.DdManageMapper;
import cn.tyoui.service.DdManageService;

@Service("ddManageService")
public class DdManageServiceImpl implements DdManageService {

	@Resource
	private DdManageMapper ddManageMapper;
	@Override
	public boolean addDd(DdBean DdBean) throws Exception {
		return ddManageMapper.addDd(DdBean);
	}
	@Override
	public List<DdBean> queryWddd(String id) throws Exception {
		return ddManageMapper.queryWddd(id);
	}
	@Override
	public void deleteDd(String id) {
		ddManageMapper.deleteDd(id);
	}
	@Override
	public List<DdBean> query_all_dd(Map<String, String> map) {
		return ddManageMapper.query_all_dd(map);
	}
	@Override
	public boolean admin_change_jd(String id) {
		return ddManageMapper.admin_change_jd(id);
	}
	@Override
	public boolean admin_change_ddzt(DdBean DdBean) {
		return ddManageMapper.admin_change_ddzt(DdBean);
	}
	@Override
	public boolean qu_pj(DdBean DdBean) {
		return ddManageMapper.qu_pj(DdBean);
	}

}
